const files = import.meta.globEager("./**/*.vue");
const components = {};
for (const key in files) {
    if (Object.prototype.hasOwnProperty.call(files, key)) {
        const pathArray = key.split("/");
        const [name] = pathArray[pathArray.length - 1].split(".");
        components[name] = files[key].default;
    }
}
const install = (app) => {
    Object.keys(components).forEach(key => {
        app.component(key, components[key]);
    });
};

export default {
    install
}
